package com.vichat.res.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/***************
 *author: autogen
 *version: 2017-12-19 17:04:04.481
 */
@Entity
@Table(name = "res_config", catalog = "resdb")
public class ResConfig implements java.io.Serializable{

	private static final long serialVersionUID = 1L;

    public static final String TABLE = "res_config";

    /**配置CODE */
	public static final String ALIAS_CFG_CODE = "cfg_code";
    /**配置描述 */
	public static final String ALIAS_CFG_NAME = "cfg_name";
    /**配置服务器 */
	public static final String ALIAS_CFG_SERVER = "cfg_server";
    /**保存地址 */
	public static final String ALIAS_SAVE_PATH = "save_path";
    /**访问地址 */
	public static final String ALIAS_ATTACH_URL = "attach_url";

 	@Id
	@Column(name = "cfg_code", unique = true, nullable = false)
    public String cfgCode;
  
 	@Column(name = "cfg_name")
    public String cfgName;
  
 	@Column(name = "cfg_server")
    public String cfgServer;
  
 	@Column(name = "save_path")
    public String savePath;
  
 	@Column(name = "attach_url")
    public String attachUrl;

	public String getCfgCode() {
		return this.cfgCode;
	}
	
	public void setCfgCode(String value) {
		this.cfgCode = value;
	}

	public String getCfgName() {
		return this.cfgName;
	}
	
	public void setCfgName(String value) {
		this.cfgName = value;
	}

	public String getCfgServer() {
		return this.cfgServer;
	}
	
	public void setCfgServer(String value) {
		this.cfgServer = value;
	}

	public String getSavePath() {
		return this.savePath;
	}
	
	public void setSavePath(String value) {
		this.savePath = value;
	}

	public String getAttachUrl() {
		return this.attachUrl;
	}
	
	public void setAttachUrl(String value) {
		this.attachUrl = value;
	}


	
	public ResConfig() {
	}
	
	public ResConfig(boolean qryflag) {
	    if(qryflag){
	    		this.cfgCode = null;
				this.cfgName = null;
				this.cfgServer = null;
				this.savePath = null;
				this.attachUrl = null;
			    }
	}


	public ResConfig(
	    String inCfgCode,
	    String inCfgName,
	    String inCfgServer,
	    String inSavePath,
		String inAttachUrl
	 ) {
		super();
				this.cfgCode = inCfgCode;
				this.cfgName = inCfgName;
				this.cfgServer = inCfgServer;
				this.savePath = inSavePath;
				this.attachUrl = inAttachUrl;
			}


}

